package
{
	import capricornus.utils.blood.Blood;
	
	import flash.display.Sprite;
	import flash.events.MouseEvent;
	
	public class BloodTest extends Sprite
	{
		private var _blood:Blood;
		
		public function BloodTest()
		{
			super();
			init();
		}
		
		private function init():void
		{
			_blood = new Blood( "RedBloodPanel", "OrangeBloodPanel", "BackBloodPanel" );
			addChild( _blood );
			
			stage.addEventListener( MouseEvent.MOUSE_DOWN, onDown );
		}
		
		private function onDown( e:MouseEvent ):void
		{
			_blood.proportion = Math.random();
		}
	}
}